﻿using System;

namespace ASmile.Win.Forms
{
    public partial class FrmRoleUrlEdit : FrmBaseEdit
    {
        public FrmRoleUrlEdit()
        {
            InitializeComponent();
        }

        enum EmMatchMode : int
        {
            StartsWith = 1,
            EndsWith = 2,
            ContainsLike = 3,
            StringEquals = 4,
            Regex = 5
        }

        private void FrmRoleUrlEdit_Load(object sender, EventArgs e)
        {
            coBoxMatchMode.BindEnum<EmMatchMode>();
        }

        private void chBoxIsLimitIP_CheckedChanged(object sender, EventArgs e)
        {
            txtIP.ReadOnly = !chBoxIsLimitIP.Checked;
        }
    }
}
